package datasort.dataprovider;

/**
 * Created with IntelliJ IDEA.
 * User: platonovv
 * Date: 31.10.13
 */
public class AscSortedData implements DataProvider<Integer> {

    public Integer[] getData(int size) {
        if (size <= 0)
            return null;
        Integer[] array = new Integer[size];
        for (int i = 0; i < size; i++) {
            array[i] = i;
        }
        return array;
    }
}
